﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="search_no.aspx.cs" Inherits="yzadmin_search_no" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ appSettings:ConnectionString %>" SelectCommand="SELECT top(100) [id], [keyword],[count],[ip] FROM [search_no] order by [count] desc" DeleteCommand="DELETE FROM search_no WHERE (id = @id)" ProviderName="System.Data.SqlClient">
            <DeleteParameters>
                <asp:Parameter Name="id" />
            </DeleteParameters>
        </asp:SqlDataSource>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" AutoGenerateDeleteButton="True" DataKeyNames="id" DataSourceID="SqlDataSource1" EnableModelValidation="True" Width="100%">
            <Columns>
                <asp:BoundField DataField="id" HeaderText="编号" InsertVisible="False" ReadOnly="True" SortExpression="id" HeaderStyle-Width="100" />
                <asp:BoundField DataField="keyword" HeaderText="关键字" SortExpression="keyword" />
                <asp:BoundField DataField="count" HeaderText="次数" SortExpression="count" />
                <asp:BoundField DataField="ip" HeaderText="ip" SortExpression="ip" />
            </Columns>
            <PagerSettings Mode="NumericFirstLast" />
        </asp:GridView>
    </div>
    </form>
</body>
</html>
